package com.gang.ssm.bos.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gang.ssm.bos.common.CriteriaStaff;
import com.gang.ssm.bos.system.bean.Staff;
import com.gang.ssm.bos.system.bean.StaffExample;

public interface StaffMapper {
    long countByExample(StaffExample example);

    int deleteByExample(StaffExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Staff record);

    int insertSelective(Staff record);

    List<Staff> selectByExample(StaffExample example);

    Staff selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Staff record, @Param("example") StaffExample example);

    int updateByExample(@Param("record") Staff record, @Param("example") StaffExample example);

    int updateByPrimaryKeySelective(Staff record);

    int updateByPrimaryKey(Staff record);

	public void removeByIdList(@Param("idList")List<Integer> idList);

	public void restoreByIdList(@Param("idList")List<Integer> idList);

	public void update(Staff staff);

	public List<Staff> findByCriteria(CriteriaStaff criteriaStaff);

	public long countByName(String name);
}